package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 *
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-07-21 22:35:48
 */

@Data
@TableName("unimall_lease_order")
public class LeaseOrderDO extends SuperDO {

	/**
	 *
	 */
    @TableField("channel")
    private String channel;
	/**
	 * 订单编号
	 */
    @TableField("order_no")
    private String orderNo;
	/**
	 * 用户
	 */
    @TableField("user_id")
    private Long userId;
	/**
	 * 状态 0-待支付 1-已支付 -1-已取消
	 */
    @TableField("status")
    private Integer status;
	/**
	 * 运费
	 */
    @TableField("freight_price")
    private Integer freightPrice;
	/**
	 * 优惠价格
	 */
    @TableField("coupon_price")
    private Integer couponPrice;
	/**
	 * 优惠券id
	 */
    @TableField("coupon_id")
    private Long couponId;
	/**
	 * 实际支付金额
	 */
    @TableField("actual_price")
    private Integer actualPrice;
	/**
	 * 支付金额
	 */
    @TableField("pay_price")
    private Integer payPrice;
	/**
	 * 支付id
	 */
    @TableField("pay_id")
    private String payId;
	/**
	 * 支付方式
	 */
    @TableField("pay_channel")
    private String payChannel;
	/**
	 * 支付时间
	 */
    @TableField("gmt_pay")
    private Date gmtPay;
	/**
	 *
	 */
    @TableField("ship_no")
    private String shipNo;
	/**
	 *
	 */
    @TableField("ship_code")
    private String shipCode;
	/**
	 *
	 */
    @TableField("gmt_ship")
    private Date gmtShip;
	/**
	 * 提交订单时间
	 */
    @TableField("gmt_confirm")
    private Date gmtConfirm;
	/**
	 * 省份
	 */
    @TableField("province")
    private String province;
	/**
	 * 城市
	 */
    @TableField("city")
    private String city;
	/**
	 * 区
	 */
    @TableField("county")
    private String county;
	/**
	 * 地址
	 */
    @TableField("address")
    private String address;
	/**
	 * 电话
	 */
    @TableField("phone")
    private String phone;
	/**
	 * 收货人
	 */
    @TableField("consignee")
    private String consignee;
	/**
	 * 已退还金额
	 */
    @TableField("refund_price")
    private Integer refundPrice;

	@TableField(exist = false)
    private Integer totalPrice;

	@TableField(exist = false)
    private Integer addressId;

	@TableField(exist = false)
	private List<LeaseOrderDetailsDO> detail;

	@TableField(exist = false)
	private LeaseDO lease;

	/**
	 * 是否可退款
	 */
	@TableField(exist = false)
	private Integer cancel;

	@TableField(exist = false)
	private String title;

}
